package com.emip.service;

import java.util.Date;
import java.util.List;

import com.emip.bean.SecondStoreBean;

public interface SecondStoreService {
	public SecondStoreBean findById(int id);
	public List<SecondStoreBean> getByTimespan(String startDate, String endDate, String[] itemIds, String siteId);
	public List<SecondStoreBean> getByTimespan(String startDate, String endDate, String[] itemIds, String siteId, int page, int size);
	public SecondStoreBean merge(SecondStoreBean store);
	public long getCount(String startDate, String endDate, String[] itemIds, String siteId);
	Date getLastDate(String itemId, String siteId);
	public long getCount(String date, String[] items, String siteId);
	public List<SecondStoreBean> getLastNItemsBySiteID(String siteId, String itemId, int num);
	public Object[] getStatistics(String startDate, String endDate, String itemIds, String siteId);
	public SecondStoreBean findBySecond(String date, String siteId, String itemId);
	public List<Object> getNormalStat(String startDate, String endDate, String itemIds, String siteId);

	public List<Object> getStat(String startDate, String endDate, String itemIds, String siteId);
}
